<?php

use Illuminate\Routing\Router;

Admin::routes();


Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {
   $router->resource('test', testController::class);
});


//不用登录的路由接口
Route::group([
//    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('test', 'UserController@test');
   
    $router->post('login','UserController@login');
    $router->post('get_data_statistics','UserController@get_data_statistics');
    $router->post('search_doctor','UserController@search_doctor');
    $router->post('search_ceo','UserController@search_ceo');
    $router->post('search_store','UserController@search_store');
    $router->post('search_store_list','UserController@search_store_list');
    $router->post('search_users','UserController@search_users');
    $router->post('search_orders','UserController@search_orders');
    $router->post('search_profits','UserController@search_profits');
    $router->post('register_user','UserController@register_user');
    $router->post('update_password','UserController@update_password');
    $router->post('count_deliver_goods','UserController@count_deliver_goods');
    $router->post('get_user_data','UserController@get_user_data');
    $router->post('count_carriage_profit','UserController@count_carriage_profit');
    $router->post('get_delivery_list','UserController@get_delivery_list');
    $router->post('get_shipments_list','UserController@get_shipments_list');
    $router->post('upload_express_info','UserController@upload_express_info');
    $router->post('get_profit_info','UserController@get_profit_info');
    $router->post('create_profit_order','UserController@create_profit_order');
    $router->post('search_profit_order','UserController@search_profit_order');
    $router->post('change_profit_status','UserController@change_profit_status');
    $router->post('search_profit_order_for_manage','UserController@search_profit_order_for_manage');
    $router->post('search_profit_order_for_kuaiji','UserController@search_profit_order_for_kuaiji');
    $router->post('get_profit_order_by_id','UserController@get_profit_order_by_id');
    $router->post('get_all_profit_info','UserController@get_all_profit_info');
    $router->post('get_bankcard','UserController@get_bankcard');
    $router->post('set_bankcard','UserController@set_bankcard');
    
    // CEO申请
    $router->post('ceo_apply','UserController@ceo_apply');
    $router->post('ceo_apply_new','UserController@ceo_apply_new');
    $router->post('get_ceo_apply_list','UserController@get_ceo_apply_list');
    $router->post('get_ceo_apply_by_id','UserController@get_ceo_apply_by_id');
    $router->post('set_ceo_apply','UserController@set_ceo_apply');
    $router->post('get_history_ceo_apply','UserController@get_history_ceo_apply');
    
    // 账户修改密码
    $router->post('send_code','UserController@send_code');
    $router->post('change_pwd','UserController@change_pwd');
/*
    $router->post('search_users','DocController@search_users');
    $router->post('search_order','DocController@search_order');
    $router->post('search_hospital','DocController@search_hospital');
    $router->post('search_doctor','DocController@search_doctor');
    $router->post('get_order_data','DocController@get_order_data');
    $router->post('get_users_data','DocController@get_users_data');
    $router->post('get_user','DocController@get_user');
    $router->post('get_search_order','H6Controller@get_search_order');
    $router->post('get_profit','H6Controller@get_profit');
    $router->post('get_all_child','H6Controller@get_all_child');
    $router->post('get_goods_price','H6Controller@get_goods_price');
    */
});



